import { ProColumns } from '@ant-design/pro-components'

const columns: ProColumns[] = [
  {
    title: '巡检记录编号',
    dataIndex: 'inspectionId',
    formItemProps: {
      rules: [
        {
          required: true,
          message: '此项为必填项'
        }
      ]
    },
    width: '30%'
  },
  {
    title: '设备名称',
    dataIndex: 'equipmentName',
    width: '30%'
  },
  {
    title: '巡检开始时间',
    dataIndex: 'inspectionStartTime',
    search: false,
    width: '30%'
  },
  {
    title: '巡检结束时间',
    dataIndex: 'inspectionEndTime',
    search: false,
    width: '30%'
  },
  {
    title: '巡检人员',
    dataIndex: 'inspector',
    search: false,
    width: '30%'
  },
  {
    title: '巡检地点',
    dataIndex: 'inspectionLocation',
    search: false,
    width: '30%'
  },
  {
    title: '设备外观状况',
    dataIndex: 'deviceCondition',
    search: false,
    width: '30%'
  },
  {
    title: '功能测试情况',
    dataIndex: 'functionTestResult',
    search: false,
    width: '30%'
  },
  {
    title: '发现问题描述',
    dataIndex: 'problem',
    search: false,
    width: '30%'
  },
  {
    title: '是否需后续跟进',
    dataIndex: 'needFollowup',
    valueType: 'select',
    valueEnum: {
      1: '是',
      2: '否'
    },
    width: '40%'
  },
  {
    title: '备注',
    dataIndex: 'remark',
    search: false,
    width: '30%'
  }
]
export default columns
